package cn.yitun.chat.yitunservercommonlib.converter.dto2vo.group;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.group.GroupRelationDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupRelationVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群组分类
 */
@Mapper(componentModel = "spring")
public interface GroupCategoryMemberDto2VoConverter {
    GroupCategoryMemberDto2VoConverter INSTANCE = Mappers.getMapper(GroupCategoryMemberDto2VoConverter.class);

    GroupRelationDto vo2dto(GroupRelationVo vo);

    List<GroupRelationDto> vo2dto(List<GroupRelationVo> voList);

    @InheritInverseConfiguration
    GroupRelationVo dto2vo(GroupRelationDto dto);
    @InheritInverseConfiguration
    List<GroupRelationVo> dto2vo(List<GroupRelationDto> dtoList);
}
